package cn.itsource.basic.util;


public class AjaxResult {

    private Boolean success = true;//表示此次请求成功还是失败 默认值,默认成功

    private String message = "操作成功";//响应给前端的信息

    private Object resultObj;

    public AjaxResult setResultObj(Object resultObj) {
        this.resultObj = resultObj;
        return this;
    }

    public Object getResultObj() {
        return resultObj;
    }

    public static AjaxResult me(){
        return new AjaxResult();
    }

    public Boolean getSuccess() {
        return success;
    }

    public AjaxResult setSuccess(Boolean success) {
        this.success = success;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public AjaxResult setMessage(String message) {
        this.message = message;
        return this;
    }
}
